/// <reference path="~/js/jquery.js" />
var phoneauto = true;

$(function () {


//首页banner
    if ($(".mobile-nav-toggle-btn").is(":visible"))
    {
        phoneauto = false;
    }

    var obj = $(".banner");
    var num = 1;
    obj.find(".bx-clone").remove()
    obj.find("ul li,ul").attr({ "style": "" })
    var ulhtml = obj.find("ul")
    obj.remove(".bx-wrapper");
    obj.html(ulhtml)
    if ($(window).width() < 1024) num = 1;
    if ($(window).width() < 768) num = 1;
    var xl = obj.width() / num;
    if (obj.find("ul li").size() >= num) {
        obj.find("ul").bxSlider({
            auto: phoneauto,
            mode: 'horizontal'
        });
    }
//首页banner

jQuery(".txtScroll-left").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:true,effect:"left",autoPlay:true,scroll:1,vis:5,trigger:"click"});

})








